import React from 'react'
import { useRoutes } from 'react-router-dom'
// 导入编写好的路由映射表
import routes from './routes'
import './App.css'

export default function App() {
  return (
    <div className="app">
      {/* 注册路由 */}
      {/* 调用 useRoutes() hooks，嵌入路由映射表 */}
      {useRoutes(routes)}
    </div>
  )
}
